package com.flying.pas.security.model;

import com.flying.framework.annotation.Param;
import com.flying.framework.annotation.Property;
import com.flying.framework.data.Data;
import com.flying.framework.data.DataSerializable;
import com.flying.framework.metadata.Meta;

@SuppressWarnings("serial")
@Meta(id="t_perm",title="权限", table="t_perm", primaryKeys={"perm_id"})
public class Perm extends Data implements DataSerializable {
	public final static String ENTITY_NAME = "t_perm";

	public final static String MODULE = "module";
	public final static String NAME = "name";
	public final static String PERM_ID = "perm_id";
	public final static String REMARKS = "remarks";
	public final static String TAG = "tag";

	
	@Param(value=PERM_ID,   required=true,   maxlength=0,	desc="权限ID" , 
			generator="com.flying.pas.model.Perm.permId", 
			props= {@Property(name="type",value="hidden")})
	private Long permId;
	
	@Param(value=MODULE,   required=false,   maxlength=40,	desc="所属模块")
	private String module;
	
	@Param(value=NAME,   required=true,   maxlength=50,	desc="名称" )
	private String name;
	
	@Param(value=REMARKS,   required=false,   maxlength=200,	desc="说明" )
	private String remarks;
	
	@Param(value=TAG,   required=false,   maxlength=50,	desc="标签" )
	private String tag;
	
	
	public String getName() {
		return this.name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getModule() {
		return module;
	}

	public void setModule(String module) {
		this.module = module;
	}

	public Long getPermId() {
		return this.permId;
	}
	
	public void setPermId(Long permId) {
		this.permId = permId;
	}
	
	public String getRemarks() {
		return this.remarks;
	}
	
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	
	public String getTag() {
		return this.tag;
	}
	
	public void setTag(String tag) {
		this.tag = tag;
	}
	

}